#ifndef CLIENT_VIEW_H
#define CLIENT_VIEW_H

#include "view.h"
#include "ClientModel.h"

class ClientView: public View
{
  public:
    ClientView(Screen* screen, Model* m, LPDIRECT3DDEVICE9 dd3d);
    ~ClientView(void);

    void InitRects(void);
	void SetPlayerPosition(int x, int y, int worldSizeX, int worldSizeY);

  protected:
    void Draw(void);
	virtual void PreRender(void);
	virtual void PostRender(void);
	void HandleMessage(Message* msg);

  private:
    ClientModel* mModel;
	RECT mBgRect;
	RECT mHudRect;
	LPDIRECT3DTEXTURE9 mBackgroundImage;
	bool IsVisible(IRenderable* r);
};

#endif
